<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ page import="java.util.ArrayList" %>
<%@ page import="java.util.List" %>
<%@ page import="jman.mode.User" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>投票</title>
</head>
<body>
<h2>进行投票</h2>
<%
List<User> userList=new ArrayList<User>();
userList=(List<User>)request.getAttribute("userList");
%>

候选人：<br><br>
<%
for(int i=0;i<userList.size();++i){
%>
<form action="DoVote">
<input type="hidden" name="user_id" value=<%=userList.get(i).getId() %>><%= userList.get(i).getName() %>(ID：<%=userList.get(i).getId() %>)
<input type="submit" value="投票">
</form>
<br>
<%
}
%>
</body>
</html>